package com.itheima.common;

public class ResultFactory {

    public static Result OK() {
        return  new Result(Code.OK, "执行成功");
    }

    public static Result ERROR(String message) {
        return new Result(Code.ERROR, message);
    }

}
